<?php global $global_images_route,$sort_idfield,$nidfield;?>
<?=inc_web ( $GLOBALS ['nhead'] );?>

<div class="wrap">
  <div class="ad-full"><a href="#"><img
	src="<?=global_images_route ()?>img/ad-1.jpg"></a></div>
  <?php $i=0; 
  foreach ($result as $row ) : if($i<5)$i++;?>
  <div class="clearfix mo-bloColor-<?=$i?>">
    <div class="mo-titColorful">
      <h2 class="tit">
        <?=$row['sort']['sort_sort']?>
      </h2>
      <div class="extraLink"><!--<a href="#">查看全部优惠</a>--></div>
    </div>
    <div class="mo-offerShow">
      <?php foreach($row['data'] as $item):?>
      <a href="#">
      	<p class="tit">
        	<?=$item[ii_cfname('topic')]?>
      	</p>
      	<i class="pic"><img src="<?=$global_images_route?>img/shop-1.jpg"></i>
        <p class="o-detail"><?=ii_left(strip_tags($item[ii_cfname ( 'content' )]),60,1)?></p>
      </a>
      <?php endforeach;?>
     </div>
  </div>
  <?php endforeach;?>
  <ul class="mo-flink clearfix">
    <li><a href="#" class="f-a1"></a></li>
    <li><a href="#" class="f-a2"></a></li>
    <li><a href="#" class="f-a3"></a></li>
  </ul>
</div>
<?=mm_web_foot ( $GLOBALS ['nfoot'] )?>
